package com.trendata.mina.server;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MinaServerListener implements ServletContextListener {
	private MinaServer minaServer;

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		if (minaServer == null) {
			minaServer = new MinaServer();
		}
		minaServer.start();
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {

	}

}
